import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const MANAGEMENT: AppRouteRecordRaw = {
  path: "/property",
  name: "property",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.property",
    icon: "icon-settings",
    requiresAuth: true,
    order: 8
  },
  children: [
    {
      path: "proenterprise",
      name: "ProEnterprise",
      component: () => import("@/views/property/enterprise/index.vue"),
      meta: {
        locale: "资产概览",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "proenterpriseDetailList",
      name: "ProEnterpriseDetailList",
      component: () => import("@/views/property/enterpriseList/index.vue"),
      meta: {
        locale: "资产清单",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "proupload",
      name: "ProUpload",
      component: () => import("@/views/property/upload/index.vue"),
      meta: {
        locale: "上传",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "proenterpriseDetail",
      name: "ProEnterpriseDetail",
      component: () => import("@/views/property/enterpriseDetail/index.vue"),
      meta: {
        locale: "资产详情",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
}

export default MANAGEMENT
